<!--# layout("/common/layout.html",{"jsBase":"/js/cms/coreAd/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">标题</label>
				<div class="layui-input-inline">
					<input type="text" id="title" name="title"  value="${coreAd.title}"   class="layui-input"  lay-verify="required">
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">链接</label>
				<div class="layui-input-inline">
					<input type="text" id="url" name="url"  value="${coreAd.url}"  lay-verify="url" class="layui-input" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <layui:attachment name="img" batchFileUUID="${coreAd.img!uuid()}" isNew="false" bizId="${coreAd.id}" bizType="CoreAd"/>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" name="id" value=${coreAd.id} />
    <layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
    var coreAdEdit = layui.edit
    coreAdEdit.init();
});
</script>
